/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package rentalmobil.testing;

import java.sql.SQLException;
import rentalmobil.entity.kembali_mobil;

/**
 *
 * @author Henfryandie
 */
public class kembali_mobil_testing {

    public static void main(String[] args) throws SQLException {
        kembali_mobil km = new kembali_mobil();
        System.out.println("");
        km.getTransaksiSewa(30);
        if (km.getNamaPenyewa()== null) {
            System.out.println("Data Kosong");
        }else {
            System.out.println("No sewa : " + km.getNo_sewa());
            System.out.println("Nama : " + km.getNamaPenyewa());
            System.out.println("Alamat : " + km.getAlamatPenyewa());
            System.out.println("Jaminan : " + km.getJaminan());
            System.out.println("Tanggal Sewa :" + km.getTanggalSewa());
            System.out.println("Tanggal Kembali : " + km.getTanggalKembali());
            System.out.println("No Plat Mobil : " + km.getNo_plat_mobil());
        }

        km.getTransaksiSewa(25);
        if (km.getNamaPenyewa()== null) {
            System.out.println("Data Kosong");
        }else {
            System.out.println("No sewa : " + km.getNo_sewa());
            System.out.println("Nama : " + km.getNamaPenyewa());
            System.out.println("Alamat : " + km.getAlamatPenyewa());
            System.out.println("Jaminan : " + km.getJaminan());
            System.out.println("Tanggal Sewa :" + km.getTanggalSewa());
            System.out.println("Tanggal Kembali : " + km.getTanggalKembali());
            System.out.println("No Plat Mobil : " + km.getNo_plat_mobil());
        }

    }
}
